<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">

<head>
	<meta charset="UTF-8">
	<title>用户管理</title>
	<link href="/plugins/layui/css/layui.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<!-- 头部查询区域 -->
    <div style="margin: 10px 0 0 10px">
      	商品名：
        <div class="layui-inline">
            <input id="searchStoreProductname" type="text" name="storeProductname" class="layui-input"/>
        </div>
      	<input type="button" id="searchBtn" class="layui-btn" value="查询"/>
        <input type="button" id="addBtn" class="layui-btn" value="新增"/>
        
    </div>

    <!-- 显示数据列表区域 -->
    <table id="storeProductTable" lay-filter="storeProductTable1"></table>
    <hr>
    <fieldset class="layui-elem-field layui-field-title">
  	<legend>仓库修改记录</legend>
  	
	</fieldset>
	<table id="storeRTable" lay-filter="storerTable1"></table>
	<!-- 新增/编辑用户弹窗中的html模版  -->
	<script type="text/html" id="addStoreProductTemplate">
		  <form class="layui-form" action="" style="padding: 20px" id="storeProductForm" lay-filter="storeProductForm">
            <input type="hidden" name="id">
            <div class="layui-form-item">
                <label class="layui-form-label">商品名</label>
                
                <div class="layui-input-block">
      				<select id="parentId" name="parent_id" lay-verify="required">
					
        				
      				</select>
    			</div>
            </div>
			<div class="layui-form-item">
                <label class="layui-form-label">商品数量</label>
                <div class="layui-input-inline">
                    <input type="text" name="num" autocomplete="off" class="layui-input">
             		</div>
            </div>
			
            <div class="layui-form-item">
                <label class="layui-form-label"></label>
                <div class="layui-input-inline">
                    <input id="saveBtn" type="button" value="保存" class="layui-btn">
                </div>
            </div>
        </form>
	</script>
	
	<script type="text/html" id="inStoreProductTemplate">
		  <form class="layui-form" action="" style="padding: 20px" id="addstoreProductForm" lay-filter="addstoreProductForm">
            <input type="hidden" name="id">
            <div class="layui-form-item">
                <label class="layui-form-label">商品名</label>
                <div class="layui-input-inline">
                    <input type="text" id="productName" name="productName" autocomplete="off" class="layui-input" readonly="readonly">
                </div>
            </div>
			<div class="layui-form-item">
                <label class="layui-form-label">商品数量</label>
                <div class="layui-input-inline">
                    <input type="text" id="num" name="num" autocomplete="off" class="layui-input" readonly="readonly">
             		</div>
            </div>
			<div class="layui-form-item">
                <label class="layui-form-label">修改的数量</label>
                <div class="layui-input-inline">
                    <input type="text" id="addnum" name="addnum" autocomplete="off" class="layui-input" placeholder="销售请填写负数" >
             		</div>
            </div>
			
            <div class="layui-form-item">
                <label class="layui-form-label"></label>
                <div class="layui-input-inline">
                    <input id="saveBtn" type="button" value="保存" class="layui-btn">
                </div>
            </div>
        </form>
	</script>
	
	<!-- 表格操作工具条模版 -->
	<script id="operateTemplate" type="text/html">
		<input type="button" value="进货" lay-event="in" class="layui-btn layui-btn-xs"/>
		<input type="button" value="销售" lay-event="out" class="layui-btn layui-btn-xs"/>
		<input type="button" value="删除" lay-event="del" class="layui-btn layui-btn-xs layui-btn-danger"/>
	</script>
	
	<!-- 用户绑定角色模版 -->
	<script id="storeProductRoleTemplate" type="text/html">
		<form class="layui-form" lay-filter="storeProductRoleForm">
			<div class="layui-form-item">
				<div class="layui-input-block" id="storeProductRoleDiv">
				</div>
			</div>
		</form>
	</script>
	
	<script type="text/javascript" src="/plugins/layui/layui.js"></script>
	<script type="text/javascript" src="/resources/js/storeProduct.js"></script>
</body>
</html>